package com.qzsoft.zhjd.materiel.modules.materielinventory.mapper;

import java.math.BigDecimal;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.materiel.modules.materielinventory.dto.MaterielInventoryListDto;
import com.qzsoft.zhjd.materiel.modules.materielinventory.entity.MaterielInventoryEntity;

/**
 * @ClassName MaterielInventoryMapper
 * @Description 物料盘点数据库接口
 * @author linhuawei
 * @since 2022-03-28
 */
@Mapper
public interface MaterielInventoryMapper extends BaseMapper<MaterielInventoryEntity> {

    /**
     * @Title queryDto
     * @Description 查询物料盘点分页列表
     * @param page   分页条件
     * @param params 查询条件
     * @return 物料盘点分页列表
     */
    public IPage<MaterielInventoryListDto> queryDto(IPage<MaterielInventoryListDto> page,
            @Param("params") Map<String, Object> params);
    
    /**
     * @Title countIncome
     * @Description 计算收取情况
     * @param params 查询条件
     * @return 收入情况
     */
    public BigDecimal countIncome(@Param("params") Map<String, Object> params);

}
